package com.yueqian.bookshop.bean;

/**
 * 封装Controller响应结果
 */
public class RtnInfo {
    private Integer code;// 响应码：-1：非空校验，0：失败状态码，1：成功状态码
    private String msg;// 响应的提示消息，主要是给前端弹框显示用
    private Object result;// 响应到前端的数据（只有查询的时候才有）

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "返回{" +
                "状态码=" + code +
                ", 消息='" + msg + '\'' +
                ", 数据=" + result +
                '}';
    }
}




















